import { mockTickets } from "@/lib/data"
import TicketDetail from "@/components/tickets/TicketDetail"

export async function generateStaticParams() {
  return mockTickets.map(ticket => ({
    id: ticket.id,
  }))
}

export default function TicketDetailPage({
  params,
}: {
  params: { id: string }
}) {
  const ticket = mockTickets.find(t => t.id === params.id)
  return <TicketDetail ticket={ticket} />
} 